home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1372 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.1 KB

  1. From: benni@phil15.uni-sb.de (Benjamin Lorenz)
  2. Subject: Re: removing a file
  3. Date: Tue, 10 May 1994 16:32:33 +0200 (MET DST)
  4. In-Reply-To: <9405072002.AA07402@topo.matups.fr> from "Thierry Bousch" at May 7, 94 10:02:22 pm
  5. Mime-Version: 1.0
  6.  
  7. > In MiNT 1.10, you can only remove a file in a directory iff:
  8. > (1) you have write permission to the directory,
  9. > (2) you own the file.
  10.       ^^^^^^^^^^^^^^^^
  11. That's right if the sticky-bit is set. Otherwise, I should be allowed 
  12. to remove ANY file in the directory!
  13.  
  14. The problem is: I need write permission for the file. Somebody included
  15. the check of the file modes in Mint 1.10.
  16. But that is totally bullshit! I need write permission for the 
  17. *directory*, and NOT for the *file* itself to be allowed to remove it. 
  18.  
  19. Try this in Mint 1.10:
  20. % touch hello
  21. % chmod 400 hello
  22. % rm -f hello
  23. rm: hello: access denied
  24.  
  25. :-\
  26.  
  27. I removed these checks from the Fdelete() call and everything works
  28. better again! (including elm that creates it's lockfiles readonly).
  29.  
  30. Benni
  31.  
  32. -- 
  33. Benjamin Lorenz, Brunnenweg 33, D-66133 Saarbruecken
  34. Phone: +49 681 815702, E-mail: lorenz@dfki.uni-sb.de
  35.  
  36.